package com.xiaotu.visitor;

/**
 * @author 张晓
 * @create 2020-06-24 18:08
 */
public class Client {
    public static void main(String[] args) {
        //创建ObjectStructure
        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.attach(new Man());
        objectStructure.attach(new Woman());

        //成功
        Success success = new Success();
        objectStructure.desplay(success);


        System.out.println("==============================");

        //失败
        Fail fail = new Fail();
        objectStructure.desplay(fail);

        //待定
        System.out.println("============给的是待定的测评===========");
        Wait wait = new Wait();
        objectStructure.desplay(wait);
    }
}
